package com.sun.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sun.common.MsResult;
import com.sun.pojo.CmsSubject;
import com.sun.pojo.UmsMemberLevel;
import com.sun.service.ICmsSubjectService;
import com.sun.service.IUmsMemberLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 专题表 前端控制器
 * </p>
 *
 * @author 妙妙屋
 * @since 2022-01-04
 */
@RestController
@RequestMapping("/subject")
public class CmsSubjectController {
    @Autowired
    private ICmsSubjectService subjectService;
    @GetMapping("/listAll")
    public MsResult list(Long defaultStatus){
        //根据默认状态，查找会员级别
        List<CmsSubject> list = subjectService.list();
        return MsResult.isOkData(list);
    }
}

